package org.meichao.utils.vo;

import org.meichao.constants.Constants;

/**
 * 返回请求消息构造体
 */
public class RespInfo<T> {

    private String respCode = Constants.RespConst.OK;
    private String respDesc = Constants.MsgConst.MSG_SUCCESS;
    private T info;
    //private String  url = "";

    public RespInfo() {
    }

    public RespInfo(String respCode, String respDesc, T info) {
        this.respCode = respCode;
        this.respDesc = respDesc;
        this.info = info;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public void setRespDesc(String respDesc) {
        this.respDesc = respDesc;
    }

    public T getInfo() {
        return info;
    }

    public void setInfo(T info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "RespInfo{" +
                "respCode = " + respCode + "," +
                "respDesc = " + respDesc + "," +
                "info = " + info +
                "}";
    }
}
